<?php get_header(); ?>


<div id="content">

<?php get_sidebar(); ?>

<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
         
        <div class="post" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <h1 class="title"><?php the_title(); ?></h1>
         
            <div class="entry">   
            <p class="postmetadata">
                 
               
                Written by <?php the_author_posts_link(); ?>
                on <?php echo get_the_date(); ?> in
                <?php the_category('/ ') ?> with
                <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
                <?php edit_post_link('Edit', ' &#124; ', ''); ?>
                </p>

                <div class="thecontent"><?php the_content(); ?></div>
 
             	<?php if(has_tag()): ?><p class="tags"><?php the_tags(); ?> </p>  <?php endif; ?> 
            </div>
        </div>
        <?php endwhile; ?>
        <?php endif; ?>
        
         <?php thinlines_wp_link_pages();  ?>

     </div> <!--end content-->   
   
             <div style="clear:both;"></div>
<?php $thinlines_settings = get_option('thinlines-options'); ?>             
<?php if( isset($thinlines_settings['comments']) && $thinlines_settings['comments'] == '1' ): ?>
<?php comments_template(); ?>
<?php endif; ?>
</div> <!--end main-->
<?php get_footer(); ?>
